Skip to content

fix: resolve failing tests and type errors across monorepo - #282

Open
stooit wants to merge 1 commit into
mainfrom
quantcode/e2e-tier3-907-1794317376
Open

stooit wants to merge 1 commit into
mainfrom
quantcode/e2e-tier3-907-1794317376

Conversation

@stooit

@stooit stooit commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Fixes all failing tests (13/13 pass) and type errors (tsc --noEmit clean).

  • bunfig.toml: replaced the invalid environment = "happy-dom" setting with a preload of packages/ui/test/setup.ts (fixes document is not defined)
  • apps/web api.ts: imports useDebounce now that useThrottle has been renamed
  • utils formatDate: day without a leading zero, month padded (1/03/2024)
  • ui Button: renders aria-label; icon-only buttons with no label fall back to "Button" and log a console.warn
  • ui DataTable: functional setSortDir(prev => ...) updater (stale closure)
  • tsconfig: added types: ["bun-types"] (already a devDependency)

Assumptions: no test files changed and no dependencies added. With the DOM loaded, the DataTable tests also pass on the original code, so the updater was kept as the intended fix rather than because the tests needed it. The "Button" fallback is a stopgap and isn't a meaningful accessible name, so callers should still pass a real label. Dates still depend on the machine's timezone, as they did before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant